﻿using System;

namespace order

{
    class Program
    {
        static void Main(string[] args)
        {
            OrderService a = new OrderService();
            bool judge_ = true;
            while (judge_)
            {
                Console.WriteLine("输入1增加订单;" + "\r\n" + "输入2删除订单;" + "\r\n" + "输入3查询订单;" + "\r\n" + "输入4显示所有订单;" + "\r\n" + "输入5根据订单号为订单排序;" + "\r\n" + "输入6退出;" + "\r\n");
                string choose1 = Console.ReadLine();
                switch (choose1)
                {
                    case "1": a.AddOrder(); break;
                    case "2": a.RemoveOrder(); break;
                    case "3": Console.WriteLine("输入1根据订单金额查询订单，输入2根据客户名查询订单"); int i = Convert.ToInt32(Console.ReadLine()); a.FindOrder(i); break;
                    case "4": a.ShowOrder(); break;
                    case "5": a.order.Sort(); break;
                    case "6": judge_ = false; break;
                    default: Console.WriteLine("输入错误"); break;
                }
            }
        }
    }
}
